package com.hnzq.cloud.api;


import com.hnzq.cloud.dto.AllSiteDto;
import com.hnzq.cloud.dto.OneSiteDto;
import com.hnzq.cloud.model.Result;
import com.hnzq.cloud.siteParam.AddSiteParam;

import com.hnzq.cloud.siteParam.FindSiteParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "fresh-address",contextId = "SiteApi",path = "freSite")
public interface SiteQueryApi {
    @GetMapping("/findSite")
    Result<OneSiteDto> findSite(@RequestParam("siteId") Integer siteId);
    @PostMapping("/addSite")
    Result addSite(@RequestBody AddSiteParam addSiteParam);
    @DeleteMapping("/removeSite")
    Result removeSite(@RequestParam("siteId") Integer siteId);
    @PutMapping("/updateSite")
    Result updateSite(@RequestBody AddSiteParam addSiteParam);
    @GetMapping("findAllSite")
    Result<AllSiteDto> findAllSite(@RequestParam("siteAreaId") Integer siteAreaId);
    @GetMapping("findAroudSite")
    Result<AllSiteDto>findAroudSite(@RequestBody FindSiteParam findSiteParam);
}
